package com.example.net.Dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.OnConflictStrategy
import androidx.room.Query
import androidx.room.Update
import com.example.net.entity.RecommonVideoEntity


@Dao
interface VideoDao {
	@Insert(onConflict = OnConflictStrategy.REPLACE)
	suspend fun insertVideo(videoEntity: RecommonVideoEntity)
	
	@Query("SELECT * FROM recommonvideo")
	suspend fun getAllVideo(): List<RecommonVideoEntity>
	
}